package com.pengtu.gsj.service.impl.gcjs;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.gsj.dao.base.Page;
import com.pengtu.gsj.dao.base.QueryFilter;
import com.pengtu.gsj.dao.check.gcjs.YHRoadConstructionBDao;
import com.pengtu.gsj.entity.gcjs.YHRoadConstructionB;
import com.pengtu.gsj.service.gcjs.YHRoadConstructionBService;

/**
 * 
 * 
 * YHRoadConstructionBServiceImpl
 * 
 * 2017年5月26日 下午4:02:24
 * 
 * @version 1.0.0
 *
 */
@Transactional
@Service
public class YHRoadConstructionBServiceImpl implements YHRoadConstructionBService {

	@Autowired
	private YHRoadConstructionBDao yHRoadConstructionBDao;

	@Override
	public List<YHRoadConstructionB> getYHRoadConstructionBs(QueryFilter queryFilter) {
		return yHRoadConstructionBDao.find(queryFilter);
	}

	@Override
	public Page<YHRoadConstructionB> findYHRoadConstructionBs(Page<YHRoadConstructionB> page,
			QueryFilter queryFilter) {
		return yHRoadConstructionBDao.findPage(page, queryFilter);
	}

	@Override
	public YHRoadConstructionB getYHRoadConstructionB(String id) {
		return yHRoadConstructionBDao.get(id);
	}

	@Override
	public void saveYHRoadConstructionB(YHRoadConstructionB yHRoadConstructionB) {
		yHRoadConstructionBDao.save(yHRoadConstructionB);
	}

	@Override
	public boolean deleteYHRoadConstructionB(String id) {
		yHRoadConstructionBDao.delete(id);
		return true;
	}

	@Override
	public Boolean checkYear(String year, String id) {
		return yHRoadConstructionBDao.checkProperty("year", year, id);
	}

}
